package edu.hubu.store.domain;

import java.util.Objects;

/**
 * @author 慕岚
 * create at 2020/12/17 23:12
 */
@SuppressWarnings(value = "unused")
public class TempObj {
    private String projectId;
    private String projectName;
    private String projectImgUrl;
    private Double buyNum;

    @Override
    public String toString() {
        return "TempObj{" + "projectId='" + projectId + '\'' + ", projectName='" + projectName + '\'' + ", projectImgUrl='" + projectImgUrl + '\'' + ", buyNum=" + buyNum + '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        TempObj tempObj = (TempObj) o;
        return Objects.equals(projectId, tempObj.projectId) && Objects.equals(projectName, tempObj.projectName) && Objects.equals(projectImgUrl, tempObj.projectImgUrl) && Objects.equals(buyNum, tempObj.buyNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(projectId, projectName, projectImgUrl, buyNum);
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectImgUrl() {
        return projectImgUrl;
    }

    public void setProjectImgUrl(String projectImgUrl) {
        this.projectImgUrl = projectImgUrl;
    }

    public Double getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Double buyNum) {
        this.buyNum = buyNum;
    }
}
